Import cal3d

Class CalCoreSubMorphTarget

	Field m_vectorBlendVertex:CalBlendVertex[]
	Field m_name:String
	
	Method New(name:String="morph")
	
		m_vectorBlendVertex = New CalBlendVertex[0]
		m_name = name
	End
	
	
	Method getBlendVertexCount:Int()
	
		Return m_vectorBlendVertex.Length
	
	End
	
	Method getVectorBlendVertex:CalBlendVertex[]()
	
		Return m_vectorBlendVertex
	
	End
	
	Method reserve:Bool(blendVertexCount:Int)
	
		m_vectorBlendVertex = New CalBlendVertex[blendVertexCount]
		
	End
	
	Method setBlendVertex:Bool(blendVertexId:Int, blendVertex:CalBlendVertex)
	
		If blendVertexId < 0 Or blendVertexId >= m_vectorBlendVertex.Length Then
			Return False
		Endif
		
		m_vectorBlendVertex[blendVertexId] = blendVertex
		Return True		
	
	End
	
	

End Class


Class CalBlendVertex Extends CalVertex



End Class